package com.itheima.genericityclass;

public class Demo2 {
    public static void main(String[] args) {
        Demo<String> d = new Demo<>();
        d.method("定定定定");
    }
}
interface MyDemo<E>{
    void method(E e);
}
class Demo<E> implements MyDemo<E>{

    @Override
    public void method(E e) {
        System.out.println(e);
    }
}